package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.content.entity.Teachplan;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-07
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 课程计划查询
     * @param courseId
     * @param companyId
     * @return
     */
    TeachplanDTO queryTreeNodesByCourseId(Long courseId, Long companyId);

    /**
     * 新增或修改课程计划
     * @param teachplanDTO
     * @return
     */
    TeachplanDTO createOrModifyTeachPlan(TeachplanDTO teachplanDTO, Long companyId);

    /**
     * 删除课程计划
     * @param teachPlanId
     * @param companyId
     */
    void removeTeachPlan(Long teachPlanId, Long companyId);
}
